﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using Nonocast.Http;


namespace Client {
	public class Program : SmallHTTPServiceBase {
		public Program()
			: base(8000) {

		}

		static void Main(string[] args) {
			new Program().Run();

			Console.WriteLine("press any key to exit.");
			Console.ReadLine();
		}

		private void Run() {
			this.Open();
		}

		public ActionResult Default() {
			return new ContentResult("<h1>hello world</h1>");
		}

		public ActionResult Page1() {
			return new HtmlResult("wwwroot/default.cshtml");
		}
	}
}
